package com.team7.system.service;

import com.team7.common.entity.Role;
import com.team7.common.vo.CommonResult;
import com.team7.common.vo.RoleVo;
import com.team7.common.vo.UserRoleVo;

/**
 * @program: team7-Object
 * @description: 角色接口
 * @author: 杨海涛
 * @create: 2021-10-18 22:57
 **/
public interface RoleService {
    CommonResult findRoleByUserId(String userId);

    CommonResult fenUserRole(UserRoleVo userRoleVo);

    CommonResult findRoleByPage(Integer page, Integer limit, RoleVo roleVo);

    CommonResult findRoleByRoleName(Integer page,Integer limit,RoleVo roleVo);

    CommonResult updateRoleStatusByid(String id, Integer deleted);

    CommonResult deleteRoleById(String roleid);

    CommonResult addOrUpdateRole(Role role);
}
